package goRpc

import (
	"github.com/flipped-aurora/gin-vue-admin/server/goRpc/res"
	"github.com/flipped-aurora/gin-vue-admin/server/model/archive"
)

type ArchiveTypeRpc struct {
}

func (r *ArchiveTypeRpc) Create(archiveType *archive.ArchiveType, reply *res.Response) error {
	err := archiveTypeService.CreateArchiveType(archiveType)
	if err != nil {
		return err
	}

	*reply = res.Ok()

	return nil
}
